<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <title>Webpack App</title>
</head>

<body>
    <div id="app">
        <div>
            <span>姓名：</span><span>{{person.name}},性别：{{person.sex}}</span><br />
            <input id="name" v-model="person.name" type="text" /><br />
            <span>年龄：</span><span >{{person.age}}</span><br />
            <button @click="insertAge">增加年龄</button>
            <div>
                <div>
                    <span>计数器</span>
                    <span v-text="num"></span>
                </div>
                <button @click="insert">增加</button>
            </div>
        </div>
    </div>
</body>

</html>